//
// SDL.hpp for 203poisson in /home/faucon_l//Work/Tek2/maths/203poisson
//
// Made by leo faucon
// Login   <faucon_l@epitech.net>
//
// Started on  Thu Mar 24 17:52:18 2011 leo faucon
// Last update Sat Apr  9 16:43:49 2011 leo faucon
//

#ifndef __SDL_HPP__
# define __SDL_HPP__

#include <string>
#include <cstdlib>
#include <sstream>
#include <iostream>
#include <SDL/SDL.h>
#include <SDL/SDL_ttf.h>

class	SDL_opt
{
public:
  //SDL.cpp
  SDL_opt(int y, int x, const std::string & titre);
  ~SDL_opt();

  SDL_Surface	*get_ecran() const;
  SDL_Surface	*get_texte() const;
  TTF_Font	*get_police(int mode) const;
  void		set_background(const std::string & path);
  void		set_police(const std::string & path, int size, int mode);

  void		aff_texte(const std::string & str, SDL_Color couleur);

  SDL_Rect	position;
  SDL_Color	couleurJaune;
  SDL_Color	couleurNoire;
  SDL_Color	couleurRouge;
  SDL_Color	couleurVerte;

private:
  SDL_Surface	*texte;
  SDL_Surface	*ecran;
  SDL_Surface	*background;
  TTF_Font	*police;
  TTF_Font	*policetexte;
};

#endif
